<%--
  Created by IntelliJ IDEA.
  User: jiangzhenzhen
  Date: 2018/8/6
  Time: 13:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/component/common.jsp" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${frames}/css/lib/bootstrap.min.css" type="text/css">
    <link rel="stylesheet" href="${frames}/css/lib/bootstrap-table.css" type="text/css">
    <link rel="stylesheet" href="${newframe}/css/index/index.css"/></head>
    <link rel="stylesheet" href="${newframe}/css/base/base.css">
    <link rel="stylesheet" href="${assets}/css/views/bpAbnormal.css">
<style>
    .describe{
        width:92%;
        margin:0 auto;
        text-align:left;
        padding:0 !important
    }
    .page-next a{
        color: transparent;
        display: block;
        width:24px;
        height:24px;
        background: url(../assets/images/next.png) no-repeat 0 0;
        margin-top:4px;
    }
    .page-pre a{
        color: transparent;
        display: block;
        width:24px;
        height:24px;
        background: url(../assets/images/prev.png) no-repeat 0 0;
        margin-top:4px;
    }
</style>
</head>
<body>
<div class="bpAbnormalWrapper">
    <div class="page-header">
        <!-- /.page-header -->
        <ul class="page_nav">
            <li class="first cur">
                <a href="#" onClick="window.parent.showSrc('${URL_LAYOUT}')" class="cur">首页</a>
                <span>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            </li>
            <li>最近未使用设备列表</li>
        </ul>
    </div>
    <%--<div class="bsAbnormalPic">
        <h1 class="title">血糖异常</h1>
        <div id="bsAbnormalPie"></div>
        <div class="line"></div>
        <p class="describe">"血糖异常 : 空腹血糖≥7.0mmol/L和（或）随机血糖≥11.1mmol/L"</p>
    </div>--%>
    <div class="testReport">
        <h1 class="title">最近未使用设备列表</h1>
        <div class="toolBar">
            <%--<span class="screening">筛选</span>
            <div class="radio">
                <input type="radio" id="normal" name="normal" value="0">
                <label name="normal" for="normal">正常</label>
                <input type="radio" id="abnormal" name="normal" value="1">
                <label name="abnormal" for="abnormal">异常</label>
            </div>
            <div class="searchInput">
                <label for="username">姓名</label>
                <input type="text" id="username" placeholder="请输入用户姓名">
                <label>时间：</label>
                <input id="beginDate" type="text" class="lay-date" placeholder="开始日期" readonly>
                &emsp;到&emsp;
                <input id="endDate" type="text" class="lay-date" placeholder="结束日期" readonly>
                <button class="search">搜索</button>
            </div>--%>
        </div>
        <div class="table">
            <table id="testTable"
                   data-toggle="table"
                   data-classes="table table-no-bordered">
                <thead>
                <tr>
                    <th data-field="patientName">患者姓名</th>
                    <th data-field="instrumentSn">设备号</th>
                    <th data-field="idCard">身份证号</th>
                    <th data-field="phone">手机号</th>
                    <th data-field="testTime">最后一次测试时间</th>
                </tr>
                </thead>
            </table>
        </div>
    </div>
</div>
<script src="${assets}/js/jquery.min.js" type="text/javascript"></script>
<script src="${assets}/js/bootstrap.min.js"></script>
<script src="${frames}/js/lib/bootstrap-table.js"></script>
<script src="${frames}/js/lib/bootstrap-table-zh-CN.js"></script>
<script src="${frames}/Chronic/laydate/laydate.js"></script>
<script src="${assets}/plugins/echarts/echarts.min.js" type="text/javascript"></script>
<script src="${assets}/js/views/vue.min.js"></script>
<script src="${assets}/js/views/notUseInstrument.js"></script>
<script type="text/javascript">
    $(document).ready(function(){

        var num = ('${num}');
        console.debug('num: ' + num);

//    初始化环形图
        /*$.ajax({
            url:ctx + '/index/errorCount',
            type:'post',
            async : true, //默认为true 异步
            data:{
                testItemCodes:'105001,105002'
            },
            dataType : 'json',
            error:function(data){
                alert('error');
            },
            success:function(res) {
                initBpAbnormal('bsAbnormalPie',res.data.testNum,res.data.errorNum);
            }
        });*/

//    初始化日历
//         initLayDate('#beginDate');
//         initLayDate('#endDate');

        /*$('.radio label').click(function(){
            var radioId = $(this).attr('name');
            $('label').removeAttr('class') && $(this).attr('class', 'checked');
            $('input[type="radio"]').removeAttr('checked') && $('#' + radioId).attr('checked', 'checked');
        });*/

        initLineTable('testTable','/index/listUnUseInstrument', num);
        // $('.searchInput .search').click(function(){
        //     initLineTable('testTable','/index/patientTests');
        // });
//    initTablePatient();
    })
</script>
</body>
</html>